[VERSN2]
combobox "Install" "Uninstall" "Select"

"Install"
stop_errors false
speedreflect auto
unlock_memory all

if collection_exists FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
// do nothing
end

import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\COPSUVBF_CTI.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\COPSUVBF_C.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\COPSUVBF_DB.bin
import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\COPSUVBFGHOST_CTI.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\COPSUVBFGHOST_C.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\COPSUVBFGHOST_DB.bin
import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\COPSUVBFPRO_CTI.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\COPSUVBFPRO_C.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\COPSUVBFPRO_DB.bin

add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO CARNAME_POLICE_COPSUVBF "Police Super Rhino Heavy SUV"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO CARNAME_POLICE_COPSUVBFGHOST "Police Super Rhino Heavy SUV Undercover"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO CARNAME_POLICE_JBPD_COPSUVBFPRO "Police GC Super Rhino Heavy SUV"

add_or_update_string LANGUAGES\LABELS_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPSUVBF "HUD_COPDESTROYED_COPSUVBF"
add_or_update_string LANGUAGES\LABELS_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPSUVBFGHOST "HUD_COPDESTROYED_COPSUVBFGHOST"
add_or_update_string LANGUAGES\LABELS_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPSUVBFPRO "HUD_COPDESTROYED_COPSUVBFPRO"
add_or_update_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPSUVBF "SUPER HEAVY SUV^COMBO BOUNTY: %$d"
add_or_update_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPSUVBFGHOST "UNDERCOVER SUPER HEAVY SUV^COMBO BOUNTY: %$d"
add_or_update_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPSUVBFPRO "GC SUPER SUV HEAVY^COMBO BOUNTY: %$d"

add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES CARSELECT_MANUFACTURER_POLICE_JBPD Textures\CARSELECT_MANUFACTURER_POLICE_JBPD.dds
add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPSUVBF Textures\SECONDARY_LOGO_COPSUVBF.dds
add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPSUVBFGHOST Textures\SECONDARY_LOGO_COPSUVBFGHOST.dds
add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPSUVBFPRO Textures\SECONDARY_LOGO_COPSUVBFPRO.dds

if directory_exists absolute CARS\COPSUVBF
do // do nothing
else
create_folder absolute CARS\COPSUVBF
end 

if directory_exists absolute CARS\COPSUVBFGHOST
do // do nothing
else
create_folder absolute CARS\COPSUVBFGHOST
end

if directory_exists absolute CARS\COPSUVBFPRO
do // do nothing
else
create_folder absolute CARS\COPSUVBFPRO
end

move_file override relative absolute Model\COPSUVBF\GEOMETRY.BIN CARS\COPSUVBF\GEOMETRY.BIN
move_file override relative absolute Model\COPSUVBF\TEXTURES.BIN CARS\COPSUVBF\TEXTURES.BIN
move_file override relative absolute Model\COPSUVBFGHOST\GEOMETRY.BIN CARS\COPSUVBFGHOST\GEOMETRY.BIN
move_file override relative absolute Model\COPSUVBFGHOST\TEXTURES.BIN CARS\COPSUVBFGHOST\TEXTURES.BIN
move_file override relative absolute Model\COPSUVBFPRO\GEOMETRY.BIN CARS\COPSUVBFPRO\GEOMETRY.BIN
move_file override relative absolute Model\COPSUVBFPRO\TEXTURES.BIN CARS\COPSUVBFPRO\TEXTURES.BIN

"Uninstall"
stop_errors false
speedreflect auto
unlock_memory all

remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global CARNAME_POLICE_COPSUVBF
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global CARNAME_POLICE_COPSUVBFGHOST
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global CARNAME_POLICE_COPSUVBFPRO

remove_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame HUD_COPDESTROYED_COPSUVBF
remove_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame HUD_COPDESTROYED_COPSUVBFGHOST
remove_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame HUD_COPDESTROYED_COPSUVBFPRO

remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES 0x47D95DA3
remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES 0xC56B14BE
remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES 0x5CEC232F
remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES 0x0577523B	

remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COPSUVBF
remove_collection GLOBAL\GLOBALB.LZC Collisions COPSUVBF
remove_collection GLOBAL\GLOBALB.LZC DBModelParts COPSUVBF
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COPSUVBFGHOST
remove_collection GLOBAL\GLOBALB.LZC Collisions COPSUVBFGHOST
remove_collection GLOBAL\GLOBALB.LZC DBModelParts COPSUVBFGHOST
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COPSUVBFPRO
remove_collection GLOBAL\GLOBALB.LZC Collisions COPSUVBFPRO
remove_collection GLOBAL\GLOBALB.LZC DBModelParts COPSUVBFPRO
erase_folder absolute CARS\COPSUVBF
erase_folder absolute CARS\COPSUVBFGHOST
erase_folder absolute CARS\COPSUVBFPRO
end
